/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import pojos.TipoId;

/**
 *
 * @author Usuario
 */
public class TipoIdDao extends AbstractDao{
    
    public List<TipoId> findByName(String name) {
        String criterio = " t where t.nombreCiudad like '" + name + "%'";
        return (List<TipoId>) super.findAll(TipoId.class, criterio);
    }
    
    public TipoId find(String id){
        return (TipoId)super.find(TipoId.class,id);
    }
}
